home *** CD-ROM | disk | FTP | other *** search
- % -----------------------------------------------------------------------------
- % Checksum demo *TERMINATE PRESCRIPTION*
- % -----------------------------------------------------------------------------
- %
- % Version : 1.00
- % Filename : CRC32.TSL
- % Company : SerWiz Comm
- % Programmer : Bo Bendtsen
- % Module created : 14 Aug 1995
- % Latest revision : 14 Aug 1995
- % Language/version : Terminate Prescription 1.00
- % Remarks : Demonstration of how to calculate a CRC32 on a file
- %
- % -----------------------------------------------------------------------------
-
- Set Crc=-1
- Open 1,"TERMINAT.DAT",0,0
- Repeat
- Set Line=Read(1,128)
- For Y,1,Length(Line),1
- Set B=Ord(Copy(Line,Y,1))
- Set Crc=GetCrcLong(B, Crc)
- Next
- Until Eof(1) | (Keypressed=1)
- Close 1
- PrintLn LongToHex(Crc)
-
-